home *** CD-ROM | disk | FTP | other *** search
/ Robotics & Artificial Int…3 (Professional Edition) / Robotics & Artificial Intelligence Tools 2003 (Professional Edition).iso / neural network tool and application / nsinstall.exe / data1.cab / Macros_Files / OneHiddenLayerMLP.nsm < prev    next >
Encoding:
Text File  |  2002-03-08  |  2.9 KB  |  69 lines

  1. application. newBreadboard (  )
  2. activeBreadboard. maximize (  )
  3. activeBreadboard. setAnimatePoint( 20, 150)
  4. activeBreadboard. setAnimateDelta( 100, 0)
  5. activeBreadboard. stampAndMove( "Axon", "inputAxon")
  6. activeBreadboard. stampAndMove( "FullSynapse", "hidden1Synapse")
  7. inputAxon. connectTo ( "hidden1Synapse" )
  8. activeBreadboard. stampAndMove( "TanhAxon", "hidden1Axon")
  9. hidden1Synapse. connectTo ( "hidden1Axon")
  10. activeBreadboard. stampAndMove( "FullSynapse", "outputSynapse")
  11. hidden1Axon. connectTo ( "outputSynapse")
  12. activeBreadboard. stampAndMove( "TanhAxon", "outputAxon")
  13. outputSynapse. connectTo ( "outputAxon" )
  14. activeBreadboard. stampAndMove ("L2Criterion", "criterion")
  15. outputAxon. connectTo ( "criterion" )
  16. activeBreadboard. setAnimatePoint( 10, 125)
  17. activeBreadboard. stampAndMove( "StaticControl", "control")
  18. control.setEpochs(100)
  19. activeBreadboard. stampOnAndMove( "BackStaticControl", "control")
  20. controlBackprop. setGradientClassName ( "Momentum" )
  21. controlBackprop. allocateBackpropPlane (  )
  22. activeBreadboard. stampOnAndMove( "File", "inputAxon")
  23. activeBreadboard. stampOnAndMove ("File", "criterion")
  24. file. setName ( "inputFile" )
  25. file1. setName ( "desiredFile" )
  26. hidden1Axon. setRows ( 5 )
  27. inputFile. setLowerBound ( -1.000000 )
  28. desiredFile. setLowerBound ( -1.000000 )
  29.  
  30. activeBreadboard. stampOnAndMove ( "MatrixViewer" , "outputAxon" )
  31. matrixViewer. setName ( "activeOutputProbe" )
  32. activeOutputProbe. setActiveAccessPoint ( "Activity" )
  33. activeOutputProbe. setActiveAccessPoint ( "Activity" )
  34. activeOutputProbe. setEnableLabels ( TRUE )
  35. activeOutputProbe. setLabelSize ( 30 )
  36. activeOutputProbe. setFontHeight ( 12 )
  37. activeOutputProbe. setFileForColumnHeadings ( "desiredFile" )
  38. activeOutputProbe. loadColumnHeadings (  )
  39. activeOutputProbe. setAccessRows (FALSE)
  40. activeOutputProbe. setActiveNeuron (0)
  41. activeOutputProbe. setLabel ( "Output" )
  42.  
  43. activeBreadboard. stampOnAndMove ( "MatrixViewer" , "desiredFile" )
  44. matrixViewer. setName ( "activeDesiredProbe" )
  45. activeDesiredProbe. setEnableLabels ( TRUE )
  46. activeDesiredProbe. setLabelSize ( 30 )
  47. activeDesiredProbe. setFontHeight ( 12 )
  48. activeDesiredProbe. setLabel ( "D" )
  49. activeDesiredProbe. setAccessRows (FALSE)
  50. activeDesiredProbe. setActiveNeuron (0)
  51. activeDesiredProbe. setLabel ( "Desired" )
  52.  
  53. activeBreadboard. stampOnAndMove ( "MatrixViewer" , "criterion" )
  54. matrixViewer. setName ( "activeCostProbe" )
  55. activeCostProbe. setActiveAccessPoint ( "Average Cost" )
  56. activeCostProbe. setEnableLabels ( TRUE )
  57. activeCostProbe. setLabelSize ( 30 )
  58. activeCostProbe. setFontHeight ( 12 )
  59. activeCostProbe. setLabel ( "" )
  60. activeCostProbe. setAccessRows (FALSE)
  61. activeCostProbe. setActiveNeuron (0)
  62. activeCostProbe. setLabel ( "Cost" )
  63.  
  64. activeOutputProbe. tileWindow (2,4,6,6)
  65. activeDesiredProbe. tileWindow (3,4,6,6)
  66. activeCostProbe. tileWindow (4,4,6,6)
  67.  
  68. activeBreadboard. select ( NULL , FALSE )
  69.